import { defineStore } from 'pinia'
const useCountStore = defineStore('count', {
  state: () => {
    return {
      count: 1
    }
  },
  getters: {

  },
  actions: {
    increment() {
      this.count++
    },
    incrementN(value: number) {
      this.count += value
    },
    incrementNWite(value: number) {
      setTimeout(() => {
        this.count += value
      }, 1000)
    }
  }
})

export default useCountStore